﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmBuscarLaboratorio.aspx.cs" Inherits="Farmacia.net.Compras.Laboratorios.frmBuscarLaboratorio" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <fieldset>
        Buscar Laboratorio: 
        <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
        <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
    </fieldset>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" DataSourceID="odsLaboratorio" GridLines="Horizontal">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <Columns>
            <asp:BoundField DataField="IdLaboratorio" HeaderText="IdLaboratorio" 
                SortExpression="IdLaboratorio" />
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                SortExpression="Nombre" />
            <asp:BoundField DataField="Referencia" HeaderText="Referencia" 
                SortExpression="Referencia" />
            <asp:HyperLinkField HeaderText="Editar" Text="Editar" 
                DataNavigateUrlFields="idLaboratorio" 
                DataNavigateUrlFormatString="frmRegistrarLaboratorio.aspx?acc=editar&amp;idLaboratorio={0}" />
            <asp:HyperLinkField HeaderText="Eliminar" Text="Eliminar" 
                DataNavigateUrlFields="idLaboratorio" 
                DataNavigateUrlFormatString="frmRegistrarLaboratorio.aspx?acc=eliminar&amp;idLaboratorio={0}" />
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>


    <asp:ObjectDataSource ID="odsLaboratorio" runat="server" 
        onobjectcreating="odsLaboratorio_ObjectCreating" 
        SelectMethod="GetFromLaboratorioByNombre" 
        TypeName="Farmacia.BussinessLogic.Almacen.Laborat.LaboratorioBL">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtNombre" DefaultValue="%" Name="nombre" 
                PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>


</asp:Content>
